if __name__ == '__main__':
    a = 'hello world'
    print(type(a))
    print(a)

    b = a.encode(encoding='utf-8')
    print(type(b))
    print(b)

    c = b.decode(encoding='utf-8')
    print(type(c))
    print(c)

    d = a.encode(encoding='gbk')
    print(type(d))
    print(d)

    e = d.decode(encoding='gbk')
    print(type(e))
    print(e)


